NAME=taide0310
BINDIR=bin
GOBUILD=CGO_ENABLED=0 go build
BUILDTIME=$(shell date +%Y%m%d%H%M%S)

all: linux-arm64 linux-amd64 windows-amd64

linux-arm64:
	GOARCH=arm64 GOOS=linux $(GOBUILD) -o $(BINDIR)/$(NAME)-$@-$(BUILDTIME)

linux-amd64:
	GOARCH=amd64 GOOS=linux $(GOBUILD) -o $(BINDIR)/$(NAME)-$@-$(BUILDTIME)

windows-amd64:
	GOARCH=amd64 GOOS=windows $(GOBUILD) -o $(BINDIR)/$(NAME)-$@-$(BUILDTIME).exe

clean:
	rm $(BINDIR)/*
	rm out/*